<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎注册</title>
    <link href="../static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="col">
        <form class="form-login" action="RegisterController" method="post">
            <h3 class="text-center">欢迎注册</h3>
            <div class="form-group">
                <label for="id_username">用户名：</label>
                <input type="text" name='name' class="form-control" id="id_username" placeholder="Username" value="${form.name}" autofocus required>
                <span>${form.errors.name} ${DBMes}</span>
            </div>
            <div class="form-group">
                <label for="id_password">密码：</label>
                <input type="password" name='password' class="form-control" id="id_password" placeholder="Password" required>
            </div>
            <div class="form-group">
                <label for="id_passwordConfirm">确认密码：</label>
                <input type="password" name='passwordConfirm' class="form-control" id="id_passwordConfirm" placeholder="password confirm" required>
                <span>${form.errors.passwordConfirm}</span>
            </div>
            <div class="form-group">
                <label for="id_email">email：</label>
                <input type="text" name='email' class="form-control" id="id_email" placeholder="email" value="${form.email}" required>
                <span>${form.errors.email}</span>
            </div>
            <div class="form-group">
                <label for="id_sex">sex：</label>
                <input type="text" name='sex' class="form-control" id="id_sex" placeholder="sex" value="${form.sex}" required>
                <span>${form.errors.sex}</span>
            </div>
            <div>
<%--                <a href="regSuccess.jsp" class="text-success "><ins>新用户注册</ins></a>--%>
                <a href="login.jsp" class="text-success "><ins>已有帐户，登录</ins></a>
                <button type="submit" class="btn btn-primary float-right">注册</button>
            </div>
        </form>
    </div>
</div> <!-- /container -->
<script src="../static/bootstrap/js/jquery-3.4.1.min.js"></script>
<script src="../static/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
